package com.mariusz.data.reports;

import static org.junit.Assert.*;

import java.util.Date;

import org.junit.Test;

import com.mariusz.data.dto.Payment;
import com.mariusz.data.dto.Rentier;

public class PaymentReportTest {

	@Test
	public void testPaymentReport() {
		Rentier rentier = new Rentier();
		rentier.setName("Jhon Smith");
		rentier.setTelephone("323232");
		rentier.setDocument("SDADA");
		Payment p = new Payment();
		p.setAmount(232.33);
		p.setNotes("Notes");
		p.setPaied(true);
		p.setPaymentDate(new Date());
		
		rentier.getPayments().add(p);
		rentier.getPayments().add(p);
		
		PaymentReport report = new PaymentReport(rentier);
		
		report.preparePdf();
		report.print();
		}

}
